<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/25
 * Time: 18:31
 */

namespace app\index\model;


use think\Model;

class Gift extends Model
{
    protected $table = 'sn_gift';
    public function getStatusAttr($value){
        $status = [0=>'禁用',1=>'正常'];
        return $status[$value];
    }
}